home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr52 / ncclib.zip / NCCDEMO.ZIP / G_HELP.PRG < prev    next >
Text File  |  1993-05-01  |  4KB  |  111 lines

  1. //═══════════════════════════════════════════════════════╕
  2. //  Program .....: G_Help                                │
  3. //  CopyRight ...: 1992 National Computer Consultants    │
  4. //                 All rights are reserved.              │
  5. //  Author ......: Greg Rice                             │
  6. //═══════════════════════════════════════════════════════╛
  7.  
  8. #include "g_event.ch"
  9. #include "inkey.ch"
  10. #include "Mouse.ch"
  11.  
  12. Function g_about()
  13.  
  14.     local screen := savescreen(), cColor := SetColor(), Mouse := MouseSys()
  15.  
  16.  
  17.     SetColor("W+/BG")
  18.     WinBox(5,13,19,66,0,4,.t.)
  19.  
  20.     @ 05,14 say "╡"
  21.     @row(),col() say " National Computer Consultants " color 'W/RB+'
  22.     @row(),col() say "╞"
  23.     @  8,31 say 'Library Demo Version'
  24.     @ 10,16 say 'Copyright (c) 1993 National Computer Consultants'
  25.     @ 12,20 say 'Phone (305) 475-7740   Fax (305) 473-4892'
  26.     @ 13,31 say 'CompuServe 70324,634'
  27.  
  28.     WinBox(15,37,17,43,,4)
  29.     @ 16,39 say 'Esc' color 'W+/RB+'
  30.  
  31.     While .t.
  32.       Mouse:MouseRead()
  33.       if Mouse:Row == 16 .and. ;
  34.          Mouse:Column >= 38 .and. ;
  35.          Mouse:Column <= 42 .or. ;
  36.          Mouse:Ascii == K_ESC .or. ;
  37.          Mouse:Button == RIGHT_BUTTON
  38.         While Mouse:Button # 0 .and. Mouse:ButtonHold( Mouse:Button )
  39.         Enddo
  40.         exit
  41.       endif
  42.     enddo
  43.     Mouse:ClearButtons()
  44.     SetColor( cColor )
  45.     restscreen(,,,,screen)
  46.  
  47. Return( NIL )
  48.  
  49.  
  50. Function g_Help( x )
  51.  
  52.     local screen := savescreen(), cColor := SetColor(), Mouse := MouseSys()
  53.  
  54.     SetColor("W+/BG")
  55.     WinBox(03,10,21,70,,4,.t.)
  56.  
  57.     @ 03,11 say "╡"
  58.     @row(),col() say " National Computer Consultants " color 'W/RB+'
  59.     @row(),col() say "╞"
  60.  
  61.     if x == ev_GenHelp
  62.       @  5,13 say 'This  demo  program  is to show  the use  of   National'
  63.       @  6,13 say 'Computer  Consultants  library.  It provides for Object'
  64.       @  7,13 say 'Oriented  Programming  using our  library and  Class(y)'
  65.       @  8,13 say 'library. It also provides for  mouse support for menus,'
  66.       @  9,13 say 'windows  and picklist.  The  mouse is  active  at  most'
  67.       @ 10,13 say 'places  in the demo.  The windows are moveable by mouse'
  68.       @ 11,13 say 'and  by using  the keyboard.  The windows  with rows of'
  69.       @ 12,13 say 'data are also scrollable by the mouse. Anywhere you see'
  70.       @ 13,13 say 'the arrows,  (     ),  you can  click on  them with'
  71.       @ 14,13 say 'the mouse to move the highlite bar. You also can scroll'
  72.       @ 15,13 say 'in windows by clicking with the mouse on that record.'
  73.     elseif x == ev_WinHelp
  74.       @  5,13 say 'Data  windows  can  be moved  and resized  by using the'
  75.       @  6,13 say 'mouse or  the keyboard.  By  clicking on the top border'
  76.       @  7,13 say 'and holding  the right mouse  button down  you can move'
  77.       @  8,13 say 'the  window around  on the screen.  Release the  button'
  78.       @  9,13 say 'when you  are done.  You can also use the ( ALT+M ) key'
  79.       @ 10,13 say 'to move the window.  Windows can be resized by clicking'
  80.       @ 11,13 say 'on any one of the 4 corners and holding  down the right'
  81.       @ 12,13 say 'mouse button and moving the mouse around.  You can zoom'
  82.       @ 13,13 say 'windows with the ( ALT+Z ) keys. You can switch between'
  83.       @ 14,13 say 'windows by clicking on the one you want active  or with'
  84.       @ 15,13 say 'the ( TAB, SHIFT+TAB ) keys.  You can have open up to 8'
  85.       @ 16,13 say 'windows. The help windows are a modal type, unmovable.'
  86.     endif
  87.  
  88.     WinBox(18,37,20,43,,4)
  89.     @ 19,39 say 'Esc' color 'W+/RB+'
  90.  
  91.     while .t.
  92.       Mouse:MouseRead()
  93.  
  94.       if Mouse:Row == 19 .and. ;
  95.          Mouse:Column >= 38 .and. ;
  96.          Mouse:Column <= 42 .or. ;
  97.          Mouse:Ascii == K_ESC .or. ;
  98.          Mouse:Button == RIGHT_BUTTON
  99.         While Mouse:Button # 0 .and. Mouse:ButtonHold( Mouse:Button )
  100.         Enddo
  101.         exit
  102.       endif
  103.  
  104.     enddo
  105.     Mouse:ClearButtons()
  106.  
  107.     SetColor( cColor )
  108.     restscreen(,,,,screen)
  109.  
  110. Return( NIL )
  111.